package com.wisewin.pose.util.wechatOffice.entity;

import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;

@JacksonXmlRootElement(localName = "xml")
public class WXResponseXML {

    @JacksonXmlProperty(localName = "FromUserName")
    private String FromUserName;

    @JacksonXmlProperty(localName = "ToUserName")
    private String ToUserName;

    @JacksonXmlProperty(localName = "CreateTime")
    private Long CreateTime;

    public Long getCreateTime() {
        return CreateTime;
    }

    public void setCreateTime(Long createTime) {
        CreateTime = createTime;
    }

    /**
     * 消息类型
     */
    @JacksonXmlProperty(localName = "MsgType")
    private String MsgType;
    /**
     * 事件类型
     */
    @JacksonXmlProperty(localName = "Event")
    private String Event = "";
    /**
     * 事件KEY值，获取二维码时的scene_id
     */
    @JacksonXmlProperty(localName = "EventKey")
    private String EventKey;
    /**
     * 二维码的Ticket
     */
    @JacksonXmlProperty(localName = "Ticket")
    private String Ticket;

    public String getFromUserName() {
        return FromUserName;
    }

    public String getToUserName() {
        return ToUserName;
    }

    public void setToUserName(String toUserName) {
        ToUserName = toUserName;
    }

    public void setFromUserName(String fromUserName) {
        FromUserName = fromUserName;
    }

    public String getMsgType() {
        return MsgType;
    }

    public void setMsgType(String msgType) {
        MsgType = msgType;
    }

    public String getEvent() {
        return Event;
    }

    public void setEvent(String event) {
        Event = event;
    }

    public String getEventKey() {
        return EventKey;
    }

    public void setEventKey(String eventKey) {
        EventKey = eventKey;
    }

    public String getTicket() {
        return Ticket;
    }

    public void setTicket(String ticket) {
        Ticket = ticket;
    }

    @Override
    public String toString() {
        return "WXResponseXML{" +
                "FromUserName='" + FromUserName + '\'' +
                ", MsgType='" + MsgType + '\'' +
                ", Event='" + Event + '\'' +
                ", EventKey='" + EventKey + '\'' +
                ", Ticket='" + Ticket + '\'' +
                '}';
    }
}
